﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace University.Workshop.Model
{
    [Table("WaterSupply")]
    public class WaterPurchase
    {
        [Key]
        public DateTime DateRegistry { get; set; }

        public string LicencePlate { get; set; }

        [ForeignKey("User")]
        public string UserId { get; set; }

        public DateTime DatePurchase { get; set; }
        public int Amount { get; set; }
        public Boolean Courtesy { get; set; }
        public decimal TotalPrice { get; set; }

        [NotMapped]
        public string Capacity { get; set; }
        [NotMapped]
        public string PersonNames { get; set; }
        [NotMapped]
        public string PersonLastNames { get; set; }

        public virtual User User { get; set; }
        //public virtual Cistern Cistern { get; set; }


    }
}
